package com.xinruke.hostels.dailymanage.mapper;

import com.xinruke.hostels.common.po.YwJiudianPinglun;
import com.xinruke.hostels.dailymanage.interfaces.dto.CommentAllInfoQueryDTO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface YwJiudianPinglunMapper extends Mapper<YwJiudianPinglun> {
    Double selectAverageScore(@Param("jiudianId") Integer jiudianId);
    //todo 实现只查询本酒店

    /**
     * 根据酒店名称会员姓名评论状态动态查询所有评论
     * @param commentAllInfoQueryDTO
     * @Author: ChenXiangpeng
     * @Date: 2019/7/27 23:03
     * @return
     */
    List<YwJiudianPinglun> selectAllComment(CommentAllInfoQueryDTO commentAllInfoQueryDTO);
}